package com.tmptSource.bean;

import java.sql.Timestamp;
import com.tmptSource.enums.*;

/**
 * Created by wxy on 2017/8/26.
 */
public class ${classNameFirstWordUpper}{


    //----------------------------------------
    // model
    //----------------------------------------
    <#list columnList as column>
    private ${column.columnType4JavaEncap} ${column.propertyName};
    </#list>

    //----------------------------------------
    // 与页面交互时的参数
    //----------------------------------------
    <#list columnList as column>
    <#if column.columnType4JavaEncap=='Timestamp'>
    private Timestamp ${column.propertyName}_Start;
    private Timestamp ${column.propertyName}_End;
    <#--private Timestamp ${column.propertyName}_235959999;-->
    <#elseif column.queryType=='between'<#-- && column.dataResource!=5-->>
    private ${column.columnType4JavaEncap} ${column.propertyName}_Start;
    private ${column.columnType4JavaEncap} ${column.propertyName}_End;
    </#if>
    </#list>


    //=====================================================
    // setter getter method
    //=====================================================

<#list columnList as column>
    public ${column.columnType4JavaEncap} get${column.propertyNameFirstWordUpper}(){
        return this.${column.propertyName};
    }
    public void set${column.propertyNameFirstWordUpper}(${column.columnType4JavaEncap} ${column.propertyName}){
        this.${column.propertyName}=${column.propertyName};
        <#--<#if  column.columnType4JavaEncap=='Timestamp'>
        this.${column.propertyName}_235959999 = DateTool.timestampAppend235959999(this.${column.propertyName});
        </#if>-->
    }
</#list>

<#list columnList as column>
    <#if  column.columnType4JavaEncap=='Timestamp'>
    public Timestamp get${column.propertyNameFirstWordUpper}_Start(){
        return ${column.propertyName}_Start;
    }
    public void set${column.propertyNameFirstWordUpper}_Start(Timestamp ${column.propertyName}_Start){
        this.${column.propertyName}_Start = ${column.propertyName}_Start;
    }
    public Timestamp get${column.propertyNameFirstWordUpper}_End(){
        return ${column.propertyName}_End;
    }
    public void set${column.propertyNameFirstWordUpper}_End(Timestamp ${column.propertyName}_End){
        <#if column.columnType=='date'>
        //UI中是date类型（不是datetime）,做下处理加23:59:59.999
        //this.${column.propertyName}_End = DateTool.timestampAppend235959999(this.${column.propertyName}_End);
        <#else>
        //UI中是datetime类型（不是date）,不用加23:59:59.999处理
        this.${column.propertyName}_End = ${column.propertyName}_End;
        </#if>
    }
    <#--public Timestamp get${column.propertyNameFirstWordUpper}_235959999(){
        return ${column.propertyName}_235959999;
    }
    public void set${column.propertyNameFirstWordUpper}_235959999(Timestamp ${column.propertyName}_235959999){
        this.${column.propertyName}_235959999 = ${column.propertyName}_235959999;
    }-->
    <#elseif column.queryType=='between'<#-- && column.dataResource!=5-->>
    public ${column.columnType4JavaEncap} get${column.propertyNameFirstWordUpper}_Start(){
        return ${column.propertyName}_Start;
    }
    public void set${column.propertyNameFirstWordUpper}_Start(${column.columnType4JavaEncap} ${column.propertyName}_Start){
        this.${column.propertyName}_Start = ${column.propertyName}_Start;
    }
    public ${column.columnType4JavaEncap} get${column.propertyNameFirstWordUpper}_End(){
        return ${column.propertyName}_End;
    }
    public void set${column.propertyNameFirstWordUpper}_End(${column.columnType4JavaEncap} ${column.propertyName}_End){
        this.${column.propertyName}_End = ${column.propertyName}_End;
    }

    </#if>

</#list>




}
